package com.overlord.im.server.message.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.overlord.im.commons.constant.AckType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * All rights Reserved, Designed By www.szy.cn
 *
 * @author wuwei
 * @title MessageAckEntity
 * @package com.overlord.im.server.message.entity
 * @date 2021-03-17 18:04
 * @Copyright 2014-现在 All rights reserved. 厦门神州鹰软件科技有限公司
 */
@TableName("SERVER_MESSAGE")
@Data
@SuperBuilder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
public class MessageAckEntity extends BaseEntity {

    /**
     * 客户端消息id
     */
    private Long clientMessageId;

    /**
     * 消息序列号
     */
    private Long sequenceId;

    /**
     * 发送方id
     */
    private Long msgFrom;

    /**
     * 接收方id
     */
    private Long msgTo;

    /**
     * ack的类型
     */
    private AckType ackType;

    /**
     * 上次发送的时间
     */
    private LocalDateTime sendTime;
}
